import Style from './style.less';
import React from 'react';

export default class Page extends React.Component {
  render() {

    const {
      full,
      children,
      className
    } = this.props;

    const classNames = className ? `${className} page` : 'page';

    return (
      <div className={classNames}>
        <div className={Style[full ? 'page-content-full' : 'page-content']}>
          {children}
        </div>
      </div>
    )
  }
}